package com.webridge.plm.test;

import java.net.MalformedURLException;
import java.net.URL;

import wt.method.RemoteMethodServer;

public class RMIClient {

    /**
     * get RMS
     * @return
     * @throws MalformedURLException
     */
    public static RemoteMethodServer getRMS() throws MalformedURLException{
        URL url = new URL("http://dev.x1929.com/Windchill/");
        String serviceName ="MethodServer"; 
         RemoteMethodServer rms =          RemoteMethodServer.getInstance(url,serviceName);
        rms.setUserName("wcadmin");
        rms.setPassword("wcadmin");


        return rms;
    }
}
